package com.globalwave.pos.inventory.entity;

import javax.persistence.*;

import java.sql.Timestamp;
import java.util.Date;


/**
 * The persistent class for the INTENTORY_PERIOD_DEFINITION database table.
 * 
 * startDate<=period<endDate
 */
@Entity
@Table(name="INVENTORY_PERIOD")
public class InventoryPeriod implements Cloneable  {
	private static final long serialVersionUID = 1L;

	public final static Short INVENTORY_PERIOD_STATUS_OPEN = 1 ;
	public final static Short INVENTORY_PERIOD_STATUS_NOT_OPEN = -1 ;
	public final static Short INVENTORY_PERIOD_STATUS_CLOSE = 0 ;

	@Id
	private Integer id;
	private Long date_from;
	private Long date_to;
	private String name_;
	private Timestamp open_on;
	private Timestamp close_on;
	private Short status_;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Long getDate_from() {
		return date_from;
	}
	public void setDate_from(Long start_date) {
		this.date_from = start_date;
	}
	public Long getDate_to() {
		return date_to;
	}
	public void setDate_to(Long end_date) {
		this.date_to = end_date;
	}
	public String getName_() {
		return name_;
	}
	public void setName_(String name_) {
		this.name_ = name_;
	}
	public Timestamp getOpen_on() {
		return open_on;
	}
	public void setOpen_on(Timestamp open_on) {
		this.open_on = open_on;
	}
	public Timestamp getClose_on() {
		return close_on;
	}
	public void setClose_on(Timestamp close_on) {
		this.close_on = close_on;
	}
	public Short getStatus_() {
		return status_;
	}
	public void setStatus_(Short status_) {
		this.status_ = status_;
	}

	@Override
	public Object clone() throws CloneNotSupportedException {
		return super.clone();
	}
}